<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$adminInfo.title} - 安装程序 </title>
<meta name="keywords" content="{$adminInfo.keywords}"/>
<meta name="description" content="{$adminInfo.description}"/>
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" href="__PUBLIC__/common/css/base.css"/>
<link rel="stylesheet" href="__PUBLIC__/common/css/global.css"/>
<link rel="stylesheet" href="__PUBLIC__/common/css/install.css"/>
</head>
<body>
<div class="m-install">
	<div class="install-head"> {$adminInfo.title} - 安装程序 </div>
	<div class="install-model">
		<div class="m-form">
			<form name="" action="{$url|'install/Index/postData'}" method="post" id="form">
			<!--{if="$error==''"}-->
				<fieldset>
					<div class="formitm">
						<label class="lab" >数据库主机：</label>
						<div class="ipt">
							<input name="DB[DB_HOST]" type="text" class="u-ipt" id="DB_HOST" value="localhost" style="width:185px;" onblur="test_data()" />
							<input name="DB[DB_PORT]" type="text" class="u-ipt" id="DB_PORT" value="3306" style="width:100px;" onblur="test_data()" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >用户名：</label>
						<div class="ipt">
							<input name="DB[DB_USER]" type="text" class="u-ipt" id="DB_USER" value="test" onblur="test_data()" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >密码：</label>
						<div class="ipt">
							<input name="DB[DB_PWD]" type="text" class="u-ipt" id="DB_PWD" value="testtest" onblur="test_data()" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >数据库名：</label>
						<div class="ipt">
							<input name="DB[DB_NAME]" type="text" class="u-ipt" id="DB_NAME" value="" style="width:185px;" onblur="test_data()" /></div>
					</div>
					<div class="formitm">
						<label class="lab" >表前缀：</label>
						<div class="ipt">
							<input name="DB[DB_PREFIX]" type="text" class="u-ipt" id="DB_PREFIX" value="dux_" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >COOKIE特征码：</label>
						<div class="ipt">
							<input name="APP[COOKIE_PREFIX]" type="text" class="u-ipt" value="<?php echo getcode(5); ?>_" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >安全加密码：</label>
						<div class="ipt">
							<input name="APP[SAFE_KEY]" type="text" class="u-ipt" value="<?php echo getcode(20); ?>" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >创始人昵称：</label>
						<div class="ipt">
							<input name="SU[NAME]" type="text" class="u-ipt" id="NAME" value="administrator" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >创始人帐号：</label>
						<div class="ipt">
							<input name="SU[USER]" type="text" class="u-ipt" id="USER" value="admin"/>
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >创始人密码：</label>
						<div class="ipt">
							<input name="SU[PWD]" type="password" class="u-ipt" id="PWD" value="" />
						</div>
					</div>
					<div class="formitm">
						<label class="lab" >创始人邮箱：</label>
						<div class="ipt">
							<input name="SU[EMAIL]" type="text" class="u-ipt" id="EMAIL" value="" />
						</div>
					</div>
					<div class="install-status"></div>
		<div class="install-button">
			
			<button class="u-install-btn" type="submit">安装</button>
			
		</div>
		<!--{else}-->
		<div class="install-button">
		<div class="install-status">{$error}</div>
		</div>
		<!--{/if}-->
				</fieldset>
			</form>
		</div>
	</div>
</div>
</body>
<script>
var baseDir='__PUBLIC__/common/js/';
</script>
<script src="__PUBLIC__/common/js/do.js"></script>
<script src="__PUBLIC__/common/js/config.js"></script>
<script>
Do.ready('form',function() {
	$('#form').Validform({
		ajaxPost: true,
		postonce: true,
		tiptype: function(msg, o, cssctl) {
			$('.install-status').text(msg);
		},
		callback: function(data) {
			if (data.status == "y") {
				window.location.href = '{$url|"install/Index/success"}';
				$('.login-status').html('安装成功，正在为您跳转！');
			} else {
				$('.login-status').html(data.info);
			}
		}
	});
});
</script>
<!--Copyright © 2014 Duxcms.com. All Rights Reserved.-->
</html>